let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start");
                var _n80,
                    i =
                    (this && this.__extends) ||
                    ((_n80 = function n(t, e) {
                            return (_n80 =
                                Object.setPrototypeOf ||
                                ({
                                        __proto__: []
                                    }
                                    instanceof Array &&
                                    function(t, e) {
                                        t.__proto__ = e;
                                    }) ||
                                function(t, e) {
                                    for (var o in e) {
                                        Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                                    }
                                })(t, e);
                        }),
                        function(t, e) {
                            function o() {
                                this.constructor = t;
                            }
                            _n80(t, e),
                                (t.prototype =
                                    null === e ?
                                    Object.create(e) :
                                    ((o.prototype = e.prototype), new o()));
                        }),
                    r =
                    (this && this.__decorate) ||
                    function(t, e, o, n) {
                        var i,
                            r = arguments.length,
                            a =
                            r < 3 ?
                            e :
                            null === n ?
                            (n = Object.getOwnPropertyDescriptor(e, o)) :
                            n;
                        if (
                            'object' ==
                            (typeof Reflect === 'undefined' ?
                                'undefined' :
                                typeof(Reflect)) &&
                            'function' == typeof Reflect.decorate
                        )
                            a = Reflect.decorate(t, e, o, n);
                        else
                            for (var s = t.length - 1; s >= 0; s--) {
                                (i = t[s]) &&
                                (a = (r < 3 ? i(a) : r > 3 ? i(e, o, a) : i(e, o)) || a);
                            }
                        return r > 3 && a && Object.defineProperty(e, o, a), a;
                    };
                Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.DieAct = void 0);
                var a = t('AbsAction'),
                    s = t('AbsActor'),
                    c = t('DieEffect'),
                    l = cc.Vec2,
                    u = t('Skill111'),
                    h = cc._decorator,
                    p = h.ccclass,
                    f =
                    (h.property,
                        (function(t) {
                            function e() {
                                return (null !== t && t.apply(this, arguments)) || this;
                            }
                            return (
                                i(e, t),
                                (e.prototype.init = function() {
                                    this._type = a.ActionType.Block;
                                }),
                                (e.prototype.onStart = function(t) {
                                    void 0 === t && (t = null);
                                    var e = this.actor;
                                    this.setActorState(s.ActorState.Die), this.playAnim('stand');
                                    var o = e.hang,
                                        n = c.DieEffect.get(),
                                        i = o.convertToWorldSpaceAR(l.ZERO);
                                    return (
                                        null == n && (n = new c.DieEffect()),
                                        n.init(),
                                        (i = e.scene.entity.convertToNodeSpaceAR(i)),
                                        n.entity.setPosition(i),
                                        (n.entity.scale = this.actor.scale),
                                        (n.entity.zIndex = n.entity.zIndex + 1),
                                        this.actor.scene.addEffect(n),
                                        (this.actor.entity.active = !1),
                                        this.actor.resume(),
                                        this.finish(),
                                        (this._time = 0.3),
                                        this.castSkill(),
                                        !0
                                    );
                                }),
                                (e.prototype.castSkill = function() {
                                    var t = this.actor;
                                    if (1 == t.camp)
                                        for (var e = 0; e < t.scene.actors.length; e++) {
                                            var o = t.scene.actors[e];
                                            if (
                                                o &&
                                                o.isValid &&
                                                o.hp > 0 &&
                                                o.camp == t.camp &&
                                                o.card &&
                                                111 == o.card.cardId
                                            ) {
                                                for (
                                                    var n = o.card.param[0], i = 0; i < t.scene.actors.length && n > 0; i++
                                                ) {
                                                    var r = t.scene.actors[i];
                                                    r &&
                                                        r.isValid &&
                                                        r.hp > 0 &&
                                                        r.camp != t.camp &&
                                                        (new u.Skill111(o, r), n--);
                                                }
                                                return;
                                            }
                                        }
                                }),
                                r([p('DieAct')], e)
                            );
                        })(a.AbsAction));
                (o.DieAct = f), console.log("end");
            module.exports =  e.exports;